home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Demos / AppMaker 2.0b3 / Demo AppMaker 1.5 / Demo AppMaker™ / Demo AppMaker™.rsrc / TmCM_504_EachMenuItem < prev    next >
Encoding:
Text File  |  1992-04-08  |  980 b   |  49 lines

  1. %case defineItem%
  2.     %if commandNr > 999%
  3.         const short c%MenuName%%MenuItemName%%    %= %commandNr%; 
  4.     %endif%
  5. %case includeDialog%
  6.     %if dialogExists%
  7.         #ifndef __U%dlogname%__
  8.             #include "U%dlogname%.h"
  9.         #endif
  10.     %endif%
  11. %case doItem.decl%
  12.     %if commandNr > 999%
  13.         %if dialogExists%
  14.             %if modeless%
  15.                 virtual pascal void Do%MenuItemName%    (void);
  16.             %endif%
  17.         %endif%
  18.     %endif%
  19. %case doItem%
  20.     %if commandNr > 999%
  21.         %if dialogExists%
  22.             %if modeless%
  23.                 #pragma segment ASelCommand
  24.                 /*----------*/
  25.                 pascal void T%appname%App::Do%MenuItemName% ()
  26.                 {
  27.                     f%dlogname%->Select ();
  28.                     f%dlogname%->Show (true, true);
  29.                 } /* Do%MenuItemName% */
  30.  
  31.             %endif%
  32.         %endif%
  33.     %endif%
  34. %case handleItem%
  35.     %if commandNr > 999%
  36.         case c%MenuName%%MenuItemName%:
  37.         %if dialogExists%
  38.                     Do%dlogname% ();
  39.                 break;
  40.         %else%
  41.                     // handle %MenuItemName% choice;
  42.                 break;
  43.         %endif%
  44.     %endif%
  45. %case enableItem%
  46.     %if commandNr > 999%
  47.         Enable (c%MenuName%%MenuItemName%, TRUE);
  48.     %endif%
  49.